package spring.boot.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import spring.boot.admin.model.SysMenu;

import java.util.List;

public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据父id，查询所有子菜单的 id和name
     */
    List<SysMenu> selectSimpleMenuByPid(@Param("pid") Long pid);

}
